.shape-container {
  position: fixed;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  width: 30%;
  max-width: 300px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;

  .shape-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;

    .tab {
      flex: 1;
      padding: 12px 16px;
      border: none;
      background: transparent;
      cursor: pointer;
      font-size: 14px;
      color: #666;
      transition: all 0.3s ease;

      &:hover {
        background: #e9ecef;
        color: #333;
      }

      &.active {
        background: #007bff;
        color: white;
        font-weight: 500;
      }
    }
  }

  .shape-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 16px;

    .shape-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 12px 8px;
      border: 2px solid transparent;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.2s ease;
      background: #f8f9fa;

      &:hover {
        background: #e9ecef;
        border-color: #007bff;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
      }

      &.selected {
        border-color: #007bff;
        background: #e3f2fd;
        box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
      }

      &.flowchart {
        background: #fff3cd;

        &:hover {
          background: #ffeaa7;
        }

        &.selected {
          background: #fff8e1;
        }
      }

      svg {
        margin-bottom: 6px;
        transition: transform 0.2s ease;
      }

      span {
        font-size: 12px;
        color: #333;
        text-align: center;
        line-height: 1.2;
      }

      &:hover svg {
        transform: scale(1.1);
      }
    }
  }
}

// 响应式设计
@media (max-width: 768px) {
  .shape-container {
    max-width: 100%;

    .shape-grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 6px;
      padding: 12px;

      .shape-item {
        padding: 8px 4px;

        span {
          font-size: 11px;
        }
      }
    }
  }
}

@media (max-width: 480px) {
  .shape-container {
    .shape-grid {
      grid-template-columns: repeat(2, 1fr);

      .shape-item {
        padding: 10px 6px;

        span {
          font-size: 12px;
        }
      }
    }
  }
}